package com.conjane.tutorial.controller;

import com.conjane.tutorial.feign.BHelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    @Resource
    private BHelloService bHelloService;

    @GetMapping(value = "/getHello")
    public String getHello(){
        return bHelloService.getHello();
    }
}
